{template "header.html"}
<script type="text/javascript">
$(function() {
	SwapTab(0);
	$(".table_form tr>th").attr("width", 150);
	$(".dr_000 tr").last().addClass("dr_border_none");
	{if $error}
	art.dialog.tips('<font color=red>{$error.msg}</font>', 3);
	d_tips('{$error.error}', 0);
	{/if}
});
// 修改栏目时的页面跳转
function show_category_field(catid) {
    {if $is_category_field}
        window.location.href = '{dr_url(APP_DIR."/home/".$ci->router->method, array("id"=>$data.id))}&catid='+catid;
    {/if}
}
function setflag(i) {
    if (i == -1) {
        $('#flag_back').show();
    } else {
        $('#flag_back').hide();
    }
}
</script>
<form action="" method="post" name="myform" id="myform">
<input name="action" id="dr_action" type="hidden" value="back" />
<input name="page" id="page" type="hidden" value="{$page}" />
<input name="backurl" type="hidden" value="{$backurl}" />
<input name="dr_id" id="dr_id" type="hidden" value="{$data.id}" />
<input name="dr_module" id="dr_module" type="hidden" value="{APP_DIR}" />
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		{$menu}
	</div>
	<div class="bk10"></div>
    <div class="table-list col-tab">
        <div class="dr_table">
		<fieldset>
			<legend>{lang('mod-600')}</legend>
			<table width="100%" class="table_form dr_000">
			<tr>
				<th><font color="red">*</font>&nbsp;{lang('cat-00')}： </th>
				<td>{$select}</td>
			</tr>
			{$myfield}
			<tr>
				<th><font color="red">*</font>&nbsp;{lang('html-322')}： </th>
				<td>
				<select name="flagid" onchange="setflag(this.value)">
					<option value="1">{lang('html-320')}</option>
					<option value="-1" {if $data['backinfo']}selected="selected"{/if}>{lang('html-321')}</option>
				</select>
				<input id="flag_back" type="text" name="backcontent" value="{$data.backinfo.backcontent}" class="input-text" style="{if !$data.backinfo}display:none;{/if}width:80%;" />
				</td>
			</tr>
        </table>
	    </div>
	</div>
</div>
<div class="fixed-bottom">
    <div class="fixed-but text-c">
        <div class="button"><input value="{lang('submit')}" type="submit" name="submit" class="cu" style="width:100px;" /></div>
    </div>
</div>
</form>
{template "footer.html"}